package com.steam.jiaQiang;

import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Comparator;

/**
 * @author bin
 * @date 2025 - 04 -08
 **/
public class MainTest1 {
    public static void main(String[] args) {
        Method[] methods = userService.class.getDeclaredMethods();
        Arrays.stream(methods).filter(method -> method.isAnnotationPresent(Order.class))
                .sorted(Comparator.comparingInt(o -> o.getAnnotation(Order.class).value()))
                .forEach(e -> System.out.println(e.getName()));
    }
}
